
enum AllGameConsts{
    Calculate,
}

interface BaseGameControl {
    InitGame(parent: eui.Group, gameData: any);
}

class AllGames {
    public static MakeGame(game: AllGameConsts): BaseGameControl {
        switch (game) {
            case AllGameConsts.Calculate:
                return new Calculate();
        }
        return null
    }
}